<template>
    <div v-text="msg" class="dv1"></div>
    <div v-html="msg1" class="dv2"></div>
</template>
<script setup>
const msg = "<span>这是v-text的指令的文本内容</span>"
const msg1 = "<b><i>这是v-html的指令的文本内容</i></b>"
</script>
<style scoped>
.dv1{
    color:red
}
.dv2{
    color: rgb(174, 0, 255);
}
</style>